package com.service.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.MusicDao;
import com.entity.Music;
import com.entity.Data.PagerData;
import com.entity.Query.MusicQuery;
import com.service.MusicService;

@Service
public class MusicServiceImpl implements MusicService{

	@Autowired
	private MusicDao musicDao;
	@Override
	public List<Map<String, Object>> queryMusic() {
		// TODO Auto-generated method stub
		return musicDao.queryMusic();
	}

	@Override
	public Map<String, Object> queryMusicId(int musicId) {
		// TODO Auto-generated method stub
		return musicDao.queryMusicId(musicId);
	}

	@Override
	public int addMusic(Music music) {
		// TODO Auto-generated method stub
		return musicDao.addMusic(music);
	}

	@Override
	public int editMusic(Music music) {
		// TODO Auto-generated method stub
		return musicDao.editMusic(music);
	}

	@Override
	public int delMusic(int musicId) {
		// TODO Auto-generated method stub
		return musicDao.delMusic(musicId);
	}

	@Override
	public PagerData queryByPage(MusicQuery musicQuery, int curPage, int pageSize) {
		// TODO Auto-generated method stub
		return musicDao.queryByPage(musicQuery, curPage, pageSize);
	}

}
